<?php
require_once PATH_NAME .'/utilities/sessions.php';
require_once PATH_NAME .'/views/posts/posts.php';
require_once PATH_NAME .'/includes/access.php';
require_once PATH_NAME .'/models/posts/posts.php';
class postsController{
	public function __construct(){}
	
	public function showPostsList(){
		$user = sessions::getSession();
		$posts = new postsView();
		$postsModel = new postsModel();
		$limit = '';
		$listsPosts = $postsModel->showPostsLists( $user['user_id'], $limit );		
		$posts->showPostsList( $listsPosts );
	}
}
?>